<template>
    <van-skeleton title :row="3" >
    </van-skeleton>
 <van-card
  num="2"
  price="2.00"
  desc="描述信息"
  title="商品标题"
  thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg"
>
  <template #tags>
    <van-tag plain type="primary">标签</van-tag>
    <van-tag plain type="primary">标签</van-tag>
  </template>
  <template #footer>
    <van-button size="mini" @click="jian">-</van-button>
    {{ num }}
    <van-button size="mini" @click="add">+</van-button>
    <van-submit-bar :price="3050" button-text="立即购买" @submit="onSubmit" @click="$router.push('/li')"/>
  </template>
 
 
</van-card>
</template>
<script setup>
import {ref} from 'vue'
let num=ref(1)

const jian=()=>{
    num.value--
}
const add=()=>{
    num.value++
}

</script>